package ru.alperez.gpsdub;

import org.json.JSONException;
import org.json.JSONObject;

import ru.alperez.model.GpsPoint;
import android.app.Activity;
import android.os.Bundle;

public class PointDetailsViewActivity extends Activity {
	public static final int REQUEST_CODE = 354535;
	
	private GpsPoint gpsPoint;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_gps);
		
		try {
			gpsPoint = GpsPoint.fromJSON(new JSONObject(getIntent().getExtras().getString("location_point")));
		} catch (JSONException e) {
			gpsPoint = null;
		}
	}
}
